import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/process/test/` + url, ...arg)

export default {
	async getTid(data) {
		return await request('get_tid', data, 'post')
	},
	async stepRun(data) {
		return await request('step/run', data, 'post')
	},

	async compensate(data) {
		return await request('compensate', data, 'post')
	},
	async runWithResultToFieldDefine(data) {
		return await request('step/runWithResultToFieldDefine', data, 'post')
	},
	async stepResume(data) {
		return await request('step_resume', data, 'post')
	},
	async transResumeAll(data) {
		const result = await request(`trans_resume`, data,'post');
		return result;
	},
	async resumeAll(data) {
		const result = await request(`trans_resume_all`, data,'post');
		return result;
	},
	async stepPause(data) {
		const result = await request(`step_pause`, data,'post');
		return result;
	},
}

